import { useRef, useState } from "react";

export default function App() {
  const [count, setCount] = useState(0);
  const person = useRef({ age: 10 });
  const handleClike = () => {
    console.log( person.current);
    setCount(count + 1);
   person.current.age++;
   
  };
  return (
    <div>
      App<br></br>
      {count}
      <button onClick={handleClike}>按钮</button>
    </div>
  );
}
